package com.zhijiang.hospital.controller;

import com.zhijiang.hospital.service.MenuService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * fan
 */
@RestController
@RequestMapping("menu")
@Api(value = "菜单", tags = {"菜单权限"})
public class MenuContorller {

    @Autowired
    MenuService mwnuService;

    //@GetMapping("selectAll")
    //@ApiModelProperty(value = "回显所有权限")
    //public ResponseResult selectAllRole(){
    //    return mwnuService.allMenu();
    //}
    //
    //@PutMapping("delete")
    //@ApiModelProperty(value = "逻辑删除某个权限")
    //public ResponseResult delete(@RequestBody SysMenu sysMenu){
    //    return mwnuService.delete(sysMenu);
    //}
    //
    //@PostMapping("endow")
    //@ApiModelProperty(value = "赋予某个角色权限")
    //public ResponseResult grantPermissions(@RequestBody RoleDto roleDto){
    //
    //    return mwnuService.relevancy(roleDto);
    //}
    //
    //@PutMapping("stop")
    //@ApiModelProperty(value = "停用权限")
    //private ResponseResult stopMenu(@RequestBody RoleDto roleDto){
    //    return mwnuService.stopMenuOne(roleDto);
    //}
    //
    //@DeleteMapping("relieve")
    //@ApiModelProperty(value = "解除角色权限")
    //private ResponseResult relieveMenu(@RequestBody RoleDto roleDto){
    //
    //    return mwnuService.relieMenu(roleDto);
    //}
}
